
let person = {
  name: 'ao',
  profession: {
    name: 'developer'
  }
}

Object.freeze(person)
Object.freeze(person.profession)
person.name = "aozong"
person.profession.name = '111111'

console.log(person);